#include <iostream>
#include "ThreadPool.h"
#include <condition_variable>
#include <mutex>

using namespace std;


bool func1() {
	cout << "func1 is working!\n";
	return true;
}

bool func2() {
	cout << "func2 is working!\n";
	return true;
}

bool func3() {
	cout << "func3 is working!\n";
	return true;
}

bool func4() {
	cout << "func4 is working!\n";
	return true;
}

bool func5() {
	cout << "func5 is working!\n";
	return true;
}

int main() {
	
	ThreadPool::Instance().AddTask(func1);
	ThreadPool::Instance().AddTask(func2);
	ThreadPool::Instance().AddTask(func3);
	ThreadPool::Instance().AddTask(func4);
	ThreadPool::Instance().AddTask(func5);
	ThreadPool::Instance().ThreadPoolExit();
	while (1) ;
}